package com.lc.question.pojo;

import com.sun.xml.internal.ws.developer.Serialization;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

//用户问卷
@ApiModel("用户问卷实体类")
public class UserTab {

    @ApiModelProperty("用户问卷ID")
    private int uq_Id;//用户问卷ID
    @ApiModelProperty("用户ID")
    private String user_Id;//用户ID
    @ApiModelProperty("计划ID")
    private int plan_Id;//问卷表ID
    @ApiModelProperty("调查状态")
    private String sur_state;
    @ApiModelProperty("参与状态")
    private String par_state;
    @ApiModelProperty("创建时间")
    private Date create_time;
    @ApiModelProperty("结束时间")
    private Date over_time;
    @ApiModelProperty("备注")
    private String t_text;

    public UserTab(int uq_Id, String user_Id, int plan_Id, String sur_state, String par_state, Date create_time, Date over_time) {
        this.uq_Id = uq_Id;
        this.user_Id = user_Id;
        this.plan_Id = plan_Id;
        this.sur_state = sur_state;
        this.par_state = par_state;
        this.create_time = create_time;
        this.over_time = over_time;
    }

    public UserTab() {
    }

    public UserTab(String user_Id, int plan_Id, Date create_time, Date over_time, String t_text) {
        this.user_Id = user_Id;
        this.plan_Id = plan_Id;
        this.create_time = create_time;
        this.over_time = over_time;
        this.t_text = t_text;
    }

    public UserTab(String user_Id, int plan_Id, String sur_state, String par_state, Date create_time, Date over_time, String t_text) {
        this.user_Id = user_Id;
        this.plan_Id = plan_Id;
        this.sur_state = sur_state;
        this.par_state = par_state;
        this.create_time = create_time;
        this.over_time = over_time;
        if (t_text==null){
            this.t_text = "";
        } else{
            this.t_text = t_text;
        }
    }

    public UserTab(String user_Id, int plan_Id, String sur_state, String par_state, Date create_time, Date over_time) {
        this.user_Id = user_Id;
        this.plan_Id = plan_Id;
        this.sur_state = sur_state;
        this.par_state = par_state;
        this.create_time = create_time;
        this.over_time = over_time;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getOver_time() {
        return over_time;
    }

    public void setOver_time(Date over_time) {
        this.over_time = over_time;
    }

    public int getUq_Id() {
        return uq_Id;
    }

    public void setUq_Id(int uq_Id) {
        this.uq_Id = uq_Id;
    }

    public String getUser_Id() {
        return user_Id;
    }

    public void setUser_Id(String user_Id) {
        this.user_Id = user_Id;
    }

    public int getPlan_Id() {
        return plan_Id;
    }

    public void setPlan_Id(int plan_Id) {
        this.plan_Id = plan_Id;
    }

    public String getSur_state() {
        return sur_state;
    }

    public void setSur_state(String sur_state) {
        this.sur_state = sur_state;
    }

    public String getPar_state() {
        return par_state;
    }

    public void setPar_state(String par_state) {
        this.par_state = par_state;
    }

    public String getT_text() {
        return t_text;
    }

    public void setT_text(String t_text) {
        this.t_text = t_text;
    }
}
